package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {


    // 员工登录
    Employee findByUsername(String username);
    //查询所有员工
    List<Employee> findList(String name);
    //添加员工

    void add(Employee employee);
    //修改回显数据
    Employee findById(Long id);
    //修改数据
    void update(Employee employee);
}